<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts@5/dist/echarts.min.js"></script>
</head>
<body>
<div id="main" style="width: 600px;height:400px;border:3px solid red"></div>
<script >
var myChart = echarts.init(document.getElementById('main'));

var option = {
    series: [{name:'访问来源',center:['50%','50%'],type:'pie',radius:'50%',data:[
        {value:183472,name:'流失用户'},
        {value:6546,name:'回流用户'},
        {value:524,name:'连续活跃用户'},
        {value:91,name:'新用户'},
        {value:0,name:'活跃用户'}
        ]
    }],
};


myChart.setOption(option)
</script>
</body>
</html>